package uk.co.revisual.domino.controller.cmds
{
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import uk.co.revisual.domino.consts.DominoConsts;
	import uk.co.revisual.domino.proxies.FSMHistoryProxy;

	public class OnStateActionCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var proxy:FSMHistoryProxy = FSMHistoryProxy(facade.retrieveProxy( DominoConsts.PROXY_NAMES.FSM_HISTORY_PROXY ));
			proxy.setTransition( note.getType() );
		}
		
	}
}